function getParams(key)
        {
           // let query = window.location.search.substring(1);
             let query = window.location.href.split('?')[1]
            query = decodeURI(query)
            let vars = query.split("&");
            let res
            vars.forEach((item)=>{
               let temp= item.split("=")
               if(temp[0]===key){
                res = temp[1]
               }
            })
            return res
        }
        console.log(getParams('uname'))